home *** CD-ROM | disk | FTP | other *** search
- /* A sample ARexx program to create a "marquis" */
- /* Execute it by entering "rx :rexx/marquis your name" */
- /* For best results, run using the "ConMan" console handler */
-
- trace off
- parse arg YourName /* the critic's name */
- CSI = '9B'x
-
- /* Open our "marquis" window */
- call open out,"con:0/0/640/60/Matinee Today Shows at 2:30 and 4:30/Close/"
- if ~result then do
- say "Open failure ... sorry"
- exit 10
- end
-
- header = 'Now Playing on an Amiga near you!'
- call writech out,CSI'1;22H'header
-
- /* Print out the critical acclaim */
- call writech out,CSI"5;10HTasty! ... T. Rex"
-
- if YourName = '' then YourName = '(YOUR NAME HERE)'
- call writech out,CSI"5;40HEntertaining! ..." YourName
-
- call writech out,CSI'0 p' /* invisible cursor */
- /* Cycle the message for a few times */
- message = "ARexx ... the interactive language for you! "
- do for 5
- do i=1 to length(message)
- NewChar = CSI'3;75H'substr(message,i,1)
- call writech out,NewChar||CSI'3;5H'||CSI'P'
- do 25;/* waste some time */;end
- end
- end
-
- /* No need to close the output file ... happens automagically */
- exit
-